package com.ruoyi.common.core.exception.valid;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author yanbl
 * @version 1.0
 * @date 2024/9/29
 * @description 校验列表
 */
@Documented
@Constraint(validatedBy = {ListValueConstraintValidator.class})
@Target(value = {ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface ListValue {

    String message() default "{com.ruoyi.common.core.exception.valid.ListValue.message}";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

    int[] value() default {};
}
